# coding: UTF-8
# Filename : chain_part_data_model.py
# Company : imedia
# Author : rose
# -*-coding:utf-8 -*-

#xml头文件
xml_head = '''<?xml version="1.0" encoding="UTF-8" ?>'''
imedia_start = '''<imedia>'''
imedia_end = '''</imedia>'''


imedia_body = '''
<comment>
<id>{id}</id>
<user>{user}</user>
<score>{score}</score>
<datetime>{datetime}</datetime>
<content>{content}</content>
'''
imedia_body_reply = '''
<reply>
<datetime>{datetime}</datetime>
<content>{content}</content>
</reply>
'''
imedia_body_end = '''
</comment>
'''
#验证失败
key_error = xml_head + '''
<imedia>
<error>
<code>000</code>
<msg>错误消息</msg>
</error>
</imedia>
'''
